entry: fix progressbar area size for interior-focus = FALSE
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Feb 2012 11:07:36 +0000 (12:07 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Feb 2012 11:14:50 +0000 (12:14 +0100)
No need to subtract focus line width again, since the progressbar is
rendered starting at (0, 0).
This also fixes the entry-progressbar-coloring reftest.

gtk/gtkentry.c

index 0694a7585090161e6355166d9959af5632e3805d..5137a4996df9a419c2ae8c76d1f6af6358cd3592 100644 (file)
@@ -3540,12 +3540,6 @@ get_progress_area (GtkWidget *widget,
   *width = text_area_width + entry_borders.left + entry_borders.right;
   *height = text_area_height + entry_borders.top + entry_borders.bottom;
 
-  if (!private->interior_focus)
-    {
-      *x -= private->focus_width;
-      *y -= private->focus_width;
-    }
-
   /* if the text area got resized by a subclass, subtract the left/right
    * border width, so that the progress bar won't extend over the resized
    * text area.